From: Ian Campbell Date: Thu, 5 Oct 2006 09:09:20 +0000 (+0100) Subject: [NET] front: Invert the test for a kernel with GSO support. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15615^2~50 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=990213dbbb72bb2e88dd8721f9eed1d1b390ad82;p=xen.git [NET] front: Invert the test for a kernel with GSO support. This simplifies a subsequent patch. Signed-off-by: Ian Campbell --- diff --git a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c index 44404afbcc..bca47e2e92 100644 --- a/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c @@ -85,10 +85,7 @@ static const int MODPARM_rx_flip = 0; #define RX_COPY_THRESHOLD 256 /* If we don't have GSO, fake things up so that we never try to use it. */ -#ifndef NETIF_F_GSO -#define netif_needs_gso(dev, skb) 0 -#define dev_disable_gso_features(dev) ((void)0) -#else +#ifdef NETIF_F_GSO #define HAVE_GSO 1 static inline void dev_disable_gso_features(struct net_device *dev) { @@ -96,6 +93,9 @@ static inline void dev_disable_gso_features(struct net_device *dev) dev->features &= (1 << NETIF_F_GSO_SHIFT) - 1; dev->features |= NETIF_F_GSO_ROBUST; } +#else +#define netif_needs_gso(dev, skb) 0 +#define dev_disable_gso_features(dev) ((void)0) #endif #define GRANT_INVALID_REF 0